home *** CD-ROM | disk | FTP | other *** search
- Path: lrz-muenchen.de!news
- From: ua302aa@lrz-muenchen.de ()
- Newsgroups: comp.lang.c++
- Subject: Re: strcpy problem
- Date: 17 Feb 1996 17:41:10 GMT
- Organization: Leibniz-Rechenzentrum, Muenchen (Germany)
- Distribution: world
- Message-ID: <4g53vm$4c5@sparcserver.lrz-muenchen.de>
- References: <31261C92.3DEE@intersurf.com>
- NNTP-Posting-Host: sun2.lrz-muenchen.de
-
- "David C. Branton" <dbranton@intersurf.com> writes:
-
- >The line strcpy... does not copy the string. When code is traced, there
- >is a proper value for playername but nothing gets copied into the nested
- >structure. All variable have been properly declared and have values at
- >this point.
-
- >Any ideas as to why strcpy does not work in this case?
-
- Maybe because the semantics of strcpy() are
-
- char *strcpy(char *destination, const char *source);
-
- and "source" is copied to "destination", not the other way round.
-
- Kurt
- --
- | Kurt Watzka Phone : +49-89-2180-6254
- | watzka@stat.uni-muenchen.de
- | ua302aa@sunmail.lrz-muenchen.de
-